package ch.fusun.baron.basic.client.ui;

import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;

import ch.fusun.baron.map.ui.views.TileAction;

/**
 * Abstrac tile action (can load images)
 */
public abstract class AbstractTileAction implements TileAction {
	@Override
	public Image loadImage(Display display, String path) {
		try {
			return Activator.getImageDescriptor(path).createImage();
		} catch (Exception e) {
			System.err.println(e);
			return null;
		}
	}
}
